<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<%--@elvariable id="base" type="String"--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- 导航条 -->
<div class="container">
    <div class="panel navbar navbar-inverse" style="margin-bottom: 0;">
        <div class="navbar-header" style="margin-right: 100px;">
            <a href="${base}/index.html">
                <img src="${base}/img/logo.jpg" class="logo">
            </a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav" id="app-main-menu">
                <li><a href="${base}/question.html">来理财</a></li>
                <li><a href="${base}/project.html">来投资</a></li>
                <li><a href="${base}/blog.html?channelId=3">来了解</a></li>
                <li><a href="${base}/forum.html">来扎堆</a></li>
            </ul>
            <div class="navbar-form navbar-right">
                <a href="${base}/cms_admin/login.at" class="btn"><img src="${base}/img/btn_login.png"></a>
                <a href="${base }/reg.html" class="btn"><img src="${base}/img/btn_regist.png"></a>
            </div>
        </div>
    </div>
</div>

<!-- 二级菜单 -->
<%
    String url = request.getRequestURI();
    String name = url.substring(url.lastIndexOf("/") + 1);
%>
<%--@elvariable id="subMenu" type="java.lang.String"--%>
<c:if test="${'liaoJie' != subMenu}">
<div class="container">
    <div class="panel submenu">
        <div class="col-lg-12">
            <ul class="nav navbar-nav">
                <%--@elvariable id="subMenu" type="java.lang.String"--%>
                <c:if test="${'touZi' == subMenu}">
                    <li><a href="${base}/project.html" class="<%= name.startsWith("project") ? "active" : "" %>">项目投标</a></li>
                    <li><a href="${base}/fund.html" class="<%= name.startsWith("fund") ? "active" : "" %>">基金交易</a></li>
                </c:if>
                <c:if test="${'liCai' == subMenu}">
                    <li><a href="${base}/question.html" class="<%= name.startsWith("question") ? "active" : "" %>">北上广理财</a></li>
                    <li><a href="${base}/member.html" class="<%= name.startsWith("member") ? "active" : "" %>">中小城理财</a></li>
                    <li><a href="${base}/member.html" class="<%= name.startsWith("member") ? "active" : "" %>">海外理财</a></li>
                </c:if>
                <c:if test="${'liaoJie' == subMenu}">
                    <%--<li><a href="${base}/blog.html" class="<%= name.startsWith("question") ? "active" : "" %>">全部</a></li>
                    <li><a href="${base}/blog.html" class="<%= name.startsWith("member") ? "active" : "" %>">理财知识</a></li>
                    <li><a href="${base}/blog.html" class="<%= name.startsWith("member") ? "active" : "" %>">金融市场</a></li>
                    <li><a href="${base}/blog.html" class="<%= name.startsWith("member") ? "active" : "" %>">财经资讯</a></li>
                    <li><a href="${base}/blog.html" class="<%= name.startsWith("member") ? "active" : "" %>">投资技巧</a></li>
                    <li><a href="${base}/blog.html" class="<%= name.startsWith("member") ? "active" : "" %>">生活享受</a></li>--%>
                </c:if>
            </ul>
        </div>
    </div>
</div>
</c:if>